package com.gouwudai.gobbs.service;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;

import com.gouwudai.gobbs.common.IPageList;
import com.gouwudai.gobbs.pojo.TbbsMaster;
import com.gouwudai.gobbs.vo.MasterLoginVO;
import com.litt.core.common.PageParam;
import com.litt.core.exception.BusiException;
import com.litt.core.exception.DBException;

/**
 * <pre>
 *  Title:TODO
 *  Description: TODO  
 * </pre>
 * 
 * @author <a href="mailto:littcai@hotmail.com">空心大白菜</a>
 * @date 2007-3-29
 * @version 1.0
 * <pre>
 * 修改记录
 *    修改后版本:     修改人：  修改日期:     修改内容: 
 * </pre>
 */
public interface IMasterService {

	void save(TbbsMaster tbbsMaster) throws BusiException;

	TbbsMaster load(Integer id);

	void update(TbbsMaster tbbsMaster) throws BusiException;

	void updatePassword(String password, Integer masterId);

	void delete(Integer masterId);

	IPageList listPage(PageParam pageParam);

	void AutoBindingTable(javax.servlet.http.HttpServletRequest request)
			throws DBException;

	void AutoBinding(HttpServletRequest request,TbbsMaster tbbsMaster );

	public MasterLoginVO masterLogin(String loginId,String password,String loginIp) throws BusiException;
	
	public MasterLoginVO masterLogin(Cookie[] cookies,String loginIp) throws BusiException;
	
}